﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;

namespace System.Data.SharePoint
{
    public class SharePointParameter : DbParameter
    {
        private DbType _dbType;
        public override DbType DbType
        {
            get
            {
                return this._dbType;
            }
            set
            {
                this._dbType = value;
            }
        }

        private ParameterDirection _direction;
        public override ParameterDirection Direction
        {
            get
            {
                return this._direction;
            }
            set
            {
                this._direction = value;
            }
        }

        private bool _isNullable;
        public override bool IsNullable
        {
            get
            {
                return this._isNullable;
            }
            set
            {
                this._isNullable = value;
            }
        }

        private string _parameterName;
        public override string ParameterName
        {
            get
            {
                return this._parameterName;
            }
            set
            {
                this._parameterName = value;
            }
        }

        public override void ResetDbType()
        {
            this._dbType = DbType.String;
        }

        private int _size;
        public override int Size
        {
            get
            {
                return this._size;
            }
            set
            {
                this._size = value;
            }
        }

        private string _sourceColumn;
        public override string SourceColumn
        {
            get
            {
                return this._sourceColumn;
            }
            set
            {
                this._sourceColumn = value;
            }
        }

        private bool _sourceColumnNullMapping;
        public override bool SourceColumnNullMapping
        {
            get
            {
                return this._sourceColumnNullMapping;
            }
            set
            {
                this._sourceColumnNullMapping = value;
            }
        }

        private DataRowVersion _sourceVersion;
        public override DataRowVersion SourceVersion
        {
            get
            {
                return this._sourceVersion;
            }
            set
            {
                this._sourceVersion = value;
            }
        }

        private object _value;
        public override object Value
        {
            get
            {
                return this._value;
            }
            set
            {
                this._value = value;
            }
        }
    }
}
